//
//  WSFavoritesCell.m
//  CharonTVProject
//
//  Created by karong on 2023/8/2.
//

#import "WSFavoritesCell.h"
#import "UIView+WSDraw.h"

@interface WSFavoritesCell ()
@property (weak, nonatomic) IBOutlet UILabel *finishLabel;
@property (weak, nonatomic) IBOutlet UIButton *selectBtn;

@end

@implementation WSFavoritesCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setDataWithObject:(WSVideo *)object edit:(BOOL)edit {
    [super setDataWithObject:object];
    self.finishLabel.text = object.finish_txt;
    self.selectBtn.hidden = !edit;
    self.selectBtn.selected = object.isSelected;
}

@end
